<%@tag import="com.winexpress.util.SessionAttributes"%>
<link href="/WineXpressClient/resources/css/bootstrap.css" rel="stylesheet"/>
<link href="/WineXpressClient/resources/css/modern-business.css" rel="stylesheet"/>
<link href="/WineXpressClient/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="/WineXpressClient/resources/js/bootstrap.js"></script>
<script src="/WineXpressClient/resources/js/modern-business.js"></script>
<script src="/WineXpressClient/resources/js/bootstrapValidator.js"></script>

<div id="top">
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/WineXpressClient/adminHome.jsp">WineXpress</a>
            </div>

            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="/WineXpressClient/adminHome.jsp">Admin Home</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Account Management<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="/WineXpressClient/accountManagement/adminParticularResult">View Account Information</a></li>
                            <li><a href="/WineXpressClient/admin/adminPaticular.jsp">Edit Particulars</a></li>
                            <li><a href="/WineXpressClient/admin/changePassword.jsp">Change Password</a></li>
                            <li><a href="/WineXpressClient/admin/cancelAdminAccount.jsp">Cancel Account </a></li>
                            <li><a href="/WineXpressClient/admin/registerNewAdmin.jsp">Register New Admin Account</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">Customer Account</li>
                            <li><a href="/WineXpressClient/admin/deleteCustomerAccount.jsp">Delete Customer Account</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">Comments Management</li>
                            <li><a href="/WineXpressClient/adminComment/sentimentComment">Management Customer Comments</a></li>
                        </ul>
                    </li>

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Product / Order<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li class="dropdown-header">Product Management</li>
                            <li><a href="/WineXpressClient/categoryManagement/manageCategory">Category Management</a></li>
                            <li><a href="/WineXpressClient/productManagement/re">Wine Management</a></li>
                            <li><a href="/WineXpressClient/manageNotifications.jsp">Notification Management</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">Order Management</li>
                            <li><a href="/WineXpressClient/searchCustomerOrder.jsp">View Customer Order</a></li>
                        </ul>
                    </li>

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Check Enquiry<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="/WineXpressClient/enquiryManagement/adminAllEnquiry"> All Enquiry</a></li>
                            <li><a href="/WineXpressClient/enquiryManagement/adminPendingEnquiry">Pending Enquiry</a></li>
                            <li><a href="/WineXpressClient/enquiryManagement/adminRespondedEnquiry">Responded Enquiry</a></li>                        
                        </ul>
                    </li>

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li class="dropdown-header">Sales Report</li>
                            <li><a href="/WineXpressClient/salesReportManagement/salesReportSubmit"> Overall Sales Report</a></li>
                            <li><a href="/WineXpressClient/sr/selectSalesYear.jsp"> Yearly Sales Report</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">Profit Report</li>
                            <li><a href="/WineXpressClient/salesReportManagement/profitReportSubmit">Overall Profit Report</a></li>     
                            <li><a href="/WineXpressClient/sr/selectProfitYear.jsp"> Yearly Profit Report</a></li>                           
                            <li class="divider"></li>
                            <li class="dropdown-header">Period Report</li>
                            <li><a href="/WineXpressClient/sr/selectSalesPeriod.jsp"> Period Report</a></li>
                            <li><a href="/WineXpressClient/salesReportManagement/selectProductPeriod"> Period Report Product</a></li>
                            <li><a href="/WineXpressClient/salesReportManagement/selectCategoryPeriod"> Period Report Category</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">Alexa Web Info Service</li>
                            <li><a href="/WineXpressClient/salesReportManagement/awis"> AWIS Report</a></li>
                        </ul>
                    </li>

                    <% if (session.getAttribute(SessionAttributes.USER_ID) != null) {%>
                    <div class="navbar-form navbar-right">
                        <a href="/WineXpressClient/accountManagement/adminParticularResult" ><%= session.getAttribute(SessionAttributes.USER_FIRST_NAME)%></a>
                        &nbsp;&nbsp;
                        <a href="/WineXpressClient/logout/index" class="btn btn-success" role="button">Sign out</a>
                    </div>
                    <% } else {%>
                    <div class="navbar-form navbar-right">
                        <button class="btn btn-primary" data-toggle="modal" data-target="#login">Sign in</button>
                        <a href="/WineXpressClient/register.jsp" class="btn btn-success" role="button">Register</a>
                    </div>
                    <% }%>
                </ul>
            </div>
        </div>
</div>

<div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Login</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form" action="/WineXpressClient/login/adminHome" method="POST">
                    <div class="form-group">
                        <label for="inputEmail" class="col-sm-2 control-label">Email</label>
                        <div class="col-sm-10">
                            <input type="email" class="form-control" name="inputEmail" placeholder="Email">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-2 control-label">Password</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control" name="inputPassword" placeholder="Password">
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-sm-4 control-label"> </label>
                        <div class="col-sm-10">
                            <a href="/WineXpressClient/forgetPassword.jsp" style="left: 30%">Forget Password</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">Sign in</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</nav>
</div>

